<?php
namespace app\api\controller;

use think\Request;
use think\controller\Rest;
use app\api\controller\Base;

/**
* 项目管理
*/
class Demo extends Base
{
	
	/**
	 * 获取项目列表
	 *
	 * @param [int] $[user_id] [用户ID]
	 * @param [int] $[ascription] [项目归属者]
	 * @return [json] [项目列表数据]
	 */
	public function demoList($user_id,$ascription)
	{
		$Base = new Base();
		# 查询项目列表
		$where = array(
			'user_id' => $user_id,
			'ascription' => $ascription
		);
		$demoList = db('demo')->where($where)->select();

		return $Base->json(200,'查询成功',$demoList);
	}
}